package com.example.famhealing.init;

import com.example.famhealing.R;
import com.example.famhealing.R.layout;
import com.example.famhealing.R.menu;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;

public class IntroduceActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		SlidingView sv = new SlidingView(this); 
        View v1 = View.inflate(this, R.layout.introduce_one, null); 
        View v2 = View.inflate(this, R.layout.introduce_two, null); 
        View v3 = View.inflate(this, R.layout.introduce_three, null); 
        sv.addView(v1); 
        sv.addView(v2); 
        sv.addView(v3); 
        setContentView(sv); 
	}
	 
	public void onClick(View v) {
		Intent intent = new Intent(this, FamCompositionActivity.class);
		intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
		startActivity(intent);
		finish();
	}
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.introduce, menu);
		return true;
	}
}

